package com.test.tm.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

import java.util.Map;

@Mapper
@Component
public interface TmMapper {

    @Insert("insert into service_tm (aName) value (#{name})")
    int insert(Map<String, String> map);

    @Update("update service_tm set aName = #{name1} where aName = #{name2}")
    int update(Map<String, String> map);

}
